package com.teamwork.common.entity.common.requestentity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
@Data
public class ReqUserBody {

    private Integer page;

    private Integer size;

    private Integer id;

    private String  username;

    private String  password;

    private String email;

    private String phone;

    private String nickname;

    private Integer status;

    private Integer role;

    @TableField(value = "createtime",fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    LocalDateTime createtime;

    @TableField(value = "updatetime",fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    LocalDateTime updatetime;
}
